﻿<UserControl x:Class="MEXT.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:mext="clr-namespace:MediaElementExtensions.Controls;assembly=MediaElementExtensions"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400">

    <Grid x:Name="LayoutRoot"
          Background="Black">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <MediaElement x:Name="mediaElement"
                      Source="Bear.wmv"
                      Grid.Row="0"
                      Grid.ColumnSpan="3"
                      AutoPlay="True" />

        <mext:ProgressSlider Grid.Row="1"
                             HorizontalAlignment="Stretch"
                             Height="20"
                             Margin="10,0"
                             MediaElement="{Binding ElementName=mediaElement}" />

        <mext:VolumeSlider Grid.Row="1"
                           Grid.Column="1"
                           Height="20"
                           Width="40"
                           Margin="10,0"
                           MediaElement="{Binding ElementName=mediaElement}" />

        <mext:StopButton Grid.Row="1" Width="16" Height="16" Margin="2"
                         Grid.Column="2" MediaElement="{Binding ElementName=mediaElement}" />
        
    </Grid>
</UserControl>
